<? error_reporting("E_ALL");?>

<? include_once('transl.php'); $splitted_transl=split_transl(__FILE__);?>
<? include_once('artikul.php'); //загрузка артикулов?>
<?// $langchoosed="RUS" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><? echo (transl_takestring($splitted_transl, "Ввод брутто значений",$langchoosed));?></title>
</head>

<?//------------------------------------------?>
<body bgcolor="#CCCCCC">
<? echo $ppost=$_POST['param'];?>
<?//------------------------------------------?>
<script language="javascript" src="dynaddline.js">//скрипт для динамического добавления строчек</script>
<script language="javascript" src="matematika.js"></script>
<form method="post">
<span id="shapka">
<table>
	<tr align="center">
	    <td colspan="5"><h1><? echo (transl_takestring($splitted_transl, "Ввод брутто значений",$langchoosed));?></h1></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Предприятие:",$langchoosed));?></td>
        <td><input name="fab_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><input name="fab_name_inputfield" type="text" value="KNAUF GIPS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC" /></td>
        <td><? echo (transl_takestring($splitted_transl, "Дата:",$langchoosed));?></td>
        <td><input name="date_inputfield" type="text" value="3.12.2004" size="12" readonly="readonly" style="background-color:#66FFCC" /></td>
    </tr>
    <tr>
    	<td><? echo (transl_takestring($splitted_transl, "Ресурсы:",$langchoosed));?></td>
        <td><input name="res_nom_inputfield" type="text" value="136" size="8" readonly="readonly" style="background-color:#66FFCC" /></td>
      <td><input name="res_name_inputfield" type="text" value="BS KOLPINO" size="30" readonly="readonly" style="background-color:#66FFCC"/></td>
        <td><? echo (transl_takestring($splitted_transl, "Смена:",$langchoosed));?></td>
        <td><input name="smena_inputfield" type="text" value="2" size="12" readonly="readonly" style="background-color:#66FFCC"/></td>
    </tr>
</table>
</span>
<br />

<span id="table">
<table border="1">
<tr>
    	<td><? echo (transl_takestring($splitted_transl, "№ арт.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Описание артикула",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Ширина",$langchoosed));?></td>
    <td><? echo (transl_takestring($splitted_transl, "Пог. метры",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Шт.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Продолж.",$langchoosed));?></td>
        <td colspan="2"><? echo (transl_takestring($splitted_transl, "Прич. прост.",$langchoosed));?></td>
        <td><? echo (transl_takestring($splitted_transl, "Место прост.",$langchoosed));?></td>
        <td><a href="#" onclick="return addline();"><? echo (transl_takestring($splitted_transl, "Добавить",$langchoosed));?></a></td>
    </tr>
    <tr id="newline" nomer="[0]">
    	<td><select name="art_nom_selectfield[0]" onchange="redraw_universal('art_nom_selectfield','art_desc_selectfield')">
    			<? 	
					$i=1;
					$ar=loaddescr('artikul.txt');
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						echo('<option value="'.$element[1]->nom.'">'.$element[1]->nom.'</option>');
					}
				?>
        	</select>
        </td>
        <td><select name="art_desc_selectfield[0]" onchange="redraw_universal('art_desc_selectfield','art_nom_selectfield');">
    			<? 	
					$i=1;
					$ar=loaddescr('artikul.txt');
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						if ($langchoosed="RUS") echo('<option value="'.$element[1]->nom.'">'.$element[1]->rus.'</option>');
						else if ($langchoosed="DE") echo('<option value="'.$element[1]->nom.'">'.$element[1]->de.'</option>');
						else echo "ERROR in LANG";			
					}
				?>
		</td>
        <td> <input name="shirina_inputfield[0]" type="text" value="" size="5"/></td> 
        <td> <input name="pog_metr_inputfield[0]" type="text" value="" size="6" /></td> 
        <td><input name="shtuk_inputfield[0]" type="text" value="" size="2" /></td> 
        <td> <input name="prodolzh_inputfield[0]" type="text" value="" onkeyup='count1("")' size="2" /></td> 
        <td> <select name="prichprost_nom_selectfield[0]" onchange="redraw_universal('prichprost_nom_selectfield','prichprost_desc_selectfield')"> 
 				<? 	
					$i=1;
					$ar=loaddescr('prostoy.txt');
					echo('<option value=""> </option>');
					while ($element=each($ar))
					{
						echo('<option value="'.$element[1]->nom.'">'.$element[1]->nom.'</option>');							
					}
				?>
		    </select>
        </td>
        <td><select name="prichprost_desc_selectfield[0]" onchange="redraw_universal('prichprost_desc_selectfield','prichprost_nom_selectfield');">/>
			<?
				$i=1;
				$ar=loaddescr('prostoy.txt');
				echo('<option value=""> </option>');
				while ($element=each($ar))
				{
					if ($langchoosed="RUS") echo('<option value="'.$element[1]->nom.'">'.$element[1]->rus.'</option>');
					else if ($langchoosed="DE") echo('<option value="'.$element[1]->nom.'">'.$element[1]->de.'</option>');
					else echo "ERROR in LANG";			
				}
			?>
        </td>
        <td><select name="mestoprost_selectfield[0]">
			<?
				$i=1;
				$ar=loaddescr('mestoprost.txt');
				echo('<option value=""> </option>');
				while ($element=each($ar))
				{
					if ($langchoosed="RUS") echo('<option value="'.$element[1]->nom.'">'.$element[1]->rus.'</option>');
					else if ($langchoosed="DE") echo('<option value="'.$element[1]->nom.'">'.$element[1]->de.'</option>');
					else echo "ERROR in LANG";			
				}
			?>
		    </select>
        </td>               
		<td valign="top"><a href="#" onclick="return rmline(0);"/><? echo (transl_takestring($splitted_transl, "Удалить",$langchoosed));?></td>
    </tr>
</table>

</span>
<br />
<? echo (transl_takestring($splitted_transl, "Суммарная продолжительность:",$langchoosed)." ");?>
<input name="sumprodolzh" type="text" value="" readonly="readonly" style="background-color:#66FFCC" />
</form>
<br />
</body>
</html>

